﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZBJF.Warranty.Common.Common;
using ZBJF.Warranty.Model;
using ZBJF.Warranty.Model.ViewModel.ServiceProvider;

namespace ZBJF.Warranty.BLL
{
    public partial class ServiceProviderTypeService
    {

        #region 删除服务商类型 + bool DeleteServiceProviderType(long serviceProviderId)
        /// <summary>
        /// 删除服务商类型
        /// </summary>
        /// <param name="serviceProviderBranchId">服务商ID</param>
        /// <returns></returns>
        public bool DeleteServiceProviderType(long serviceProviderId)
        {
            string sql = "DELETE FROM ServiceProviderType WHERE ServiceProviderId=@serviceProviderId";
            int re = ExcuteSql(sql, new System.Data.SqlClient.SqlParameter[] { new System.Data.SqlClient.SqlParameter("serviceProviderId", serviceProviderId) });
            return re > 0;
        }
        #endregion
    }
}
